package discovery

const (
    ENDPOINT_REGISTER = "/nacos/v1/ns/instance"
)

type NacosNamingInstance struct {
    IP          string  //// yes	IP of instance
    Port        int     //	yes	Port of instance
    Tenant      string  //     no	ID of tenant
    Weight      float64 // no	Weight
    Enable      bool    // no	enabled or not
    Healthy     bool    // no	healthy or not
    Metadata    string  //	no	extended information
    ClusterName string  //	no	cluster name
    ServiceName string  //	yes	service name
}

type NacosDiscoveryClient struct {
}

//curl -X PUT 'http://127.0.0.1:8848/nacos/v1/ns/instance?port=8848&healthy=true&ip=11.11.11.11&weight=1.0&serviceName=nacos.test.3&encoding=GBK&tenant=n1''
func (d *NacosDiscoveryClient) Register() {

}

//curl -X delete 'http://127.0.0.1:8848/nacos/v1/ns/instance?port=8848&healthy=true&ip=11.11.11.11&weight=1.0&serviceName=nacos.test.3&encoding=GBK&tenant=n1''
func (d *NacosDiscoveryClient) Deregister() {

}

//post /nacos/v1/ns/instance/update
func (d *NacosDiscoveryClient) Modify() {

}

//get /nacos/v1/ns/instance/list
func (d *NacosDiscoveryClient) Instances() {

} //get /nacos/v1/ns/instance
func (d *NacosDiscoveryClient) Instance() {

}
